import Login from "../pages/Login";
import List from "../pages/admin/products/List";
import Index from "../pages/admin/dashboard/Index";
import Edit from "../pages/admin/products/Edit";
import PageNotFound from "../pages/PageNotFound";
export const mainRoutes = [
  {
    path: "/login",
    component: Login,
  },
  {
    path: "/404",
    component: PageNotFound,
  },
];

export const adminRoutes = [
  {
    path: "/admin/dashboard",
    component: Index,
    isShow: true, //是否展示
    title: "看板",
    icon: "area-chart",
  },
  {
    path: "/admin/products",
    component: List,
    exact: true, //全匹配
    isShow: true, //是否展示
    title: "商品管理",
    icon: "shop",
  },
  {
    path: "/admin/products/edit",
    component: Edit,
    title: "商品编辑",
    isShow: false, //是否展示
    icon: "",
  },
];
